﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Backend/Backend.Master" Inherits="System.Web.Mvc.ViewPage<IntroduceCompany.CurrencyExchangeRate>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	CurrencyExchangeRatesEdit
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<!-- Begin one column tab content window -->
    <div class="onecolumn">
        <div class="header">
            <span>CurrencyExchangeRatesEdit</span>
            <div class="switchbutton">
                <a href="<%= Url.Action("OrderList", "Order") %>" class="button">Danh sách đơn đặt hàng</a>
            </div>
        </div><br class="clear" />
        <div class="content">
            <% using (Html.BeginForm()) {%>
                <%= Html.AntiForgeryToken(IntroduceCompany.Util.AntiKey.EditSalt)%>
                <%= Html.ValidationSummary(true) %>
                <div class="display-label error">
                    <div class="errorcontent">
                       <p><%= Html.ValidationMessage("NoticePage")%></p>
                       <p><%= Html.ValidationMessageFor(model => model.CurrencyName) %></p>
                       <p><%= Html.ValidationMessageFor(model => model.Rate) %></p>
                    </div>
                </div>
                <div>
                    <div class="editor_left">
                        <label>Tên tiền tệ đổi sang:</label><br />
                        <%= Html.TextBoxFor(model => model.CurrencyName, new { Maxlength = "10" })%>
                    </div>
                    <div class="editor_middle">
                        <label>Tỷ giá USD-VN:</label><br />
                        <%= Html.TextBoxFor(model => model.Rate, String.Format("R", Model.Rate))%>
                    </div>
                    <div class="editor_right">
                        <label>Ghi chú:</label><br />
                        <%= Html.TextBoxFor(model => model.Note, new { Maxlength = "1000" })%>
                    </div>
                </div><br class="clear"/><br />
                <div>
                    <div class="editor_left">
                        <%= Html.HiddenFor(model => model.CurID) %>
                        <input type="submit" value="Lưu"/>
                    </div>
                    <div class="editor_middle">
                        <label>
                            Lần cập nhật cuối:</label>
                        <%= IntroduceCompany.Util.GeneralClass.ConvertDate_1B( Model.UpdateDate) %>
                    </div>
                </div><br class="clear"/>
            <% } %>
        </div>
    </div>
</asp:Content>

